package id.co.rho.scoring.cid.changecontrol;

import id.co.rho.scoring.cid.changecontrol.entitychange.UpdateEntityChange;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;




public class InsertCommand implements ChangeControl{
	
	EntityManager entityManager;
	UpdateEntityChange entityChange;
	Object classEntity;

	public void setEntityManager(EntityManager entityManager) {
		this.entityManager = entityManager;
	}

	public void setEntityInsert(Object classEntity){
		this.classEntity = classEntity;
	}

//	@Override
	public void execute() {
		
		entityManager.persist(classEntity);

	}

	@Override
	public void executeInsertChange() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void executeUpdateChange() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void executeDeleteChange() {
		// TODO Auto-generated method stub
		
	}

}
